package com.ty.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("b_order")
public class Order {
    /** 订单ID */
    @TableId(value = "order_id",type = IdType.AUTO)
    @ApiModelProperty(name = "orderId",notes = "订单Id")
    private Integer orderId ;
    /** 创建时间 */
    @TableField(exist = false)
    @ApiModelProperty(name = "创建时间",notes = "")
    private Date createTime ;
    /** 更新时间 */
    @TableField(exist = false)
    @ApiModelProperty(name = "更新时间",notes = "")
    private Date updateTime ;
    /** 店铺id */
    @ApiModelProperty(name = "店铺id",notes = "")
    private Integer shopId ;
    /** 用户ID */
    @ApiModelProperty(name = "用户ID",notes = "")
    private Integer userId ;
    /** 配送类型：无需快递 */
    @ApiModelProperty(name = "配送类型：无需快递",notes = "")
    private Integer deliveryType ;
    /** 店铺名称 */
    @ApiModelProperty(name = "店铺名称",notes = "")
    private String shopName ;
    /** 总值 */
    @ApiModelProperty(name = "总值",notes = "")
    private Integer total ;
    /** 订单状态 1:待付款 2:待发货 3:待收货(已发货) 5:成功 6:失败 */
    @ApiModelProperty(name = "订单状态 1:待付款 2:待发货 3:待收货(已发货) 5:成功 6:失败",notes = "")
    private Integer status ;
    /** 订单商品总数 */
    @ApiModelProperty(name = "订单商品总数",notes = "")
    private Integer allCount ;
    /** 付款时间 */
    @TableField(exist = false)
    @ApiModelProperty(name = "付款时间",notes = "")
    private Date payTime ;
    /** 发货时间 */
    @TableField(exist = false)
    @ApiModelProperty(name = "发货时间",notes = "")
    private Date deliveryTime ;
    /** 完成时间 */
    @TableField(exist = false)
    @ApiModelProperty(name = "完成时间",notes = "")
    private Date finallyTime ;
    /** 结算时间 */
    @TableField(exist = false)
    @ApiModelProperty(name = "结算时间",notes = "")
    private Date settledTime ;
    /** 取消时间 */
    @TableField(exist = false)
    @ApiModelProperty(name = "取消时间",notes = "")
    private Date cancelTime ;
    /** 是否已支付，1.已支付0.未支付 */
    @TableField(exist = false)
    @ApiModelProperty(name = "是否已支付，1.已支付0.未支付",notes = "")
    private Integer isPayed ;
    /** 订单关闭原因 1-超时未支付 4-买家取消 15-已通过货到付款交易 */
    @TableField(exist = false)
    @ApiModelProperty(name = "订单关闭原因 1-超时未支付 4-买家取消 15-已通过货到付款交易",notes = "")
    private Integer closeType ;
    /** 用户订单删除状态，0：没有删除， 1：回收站， 2：永久删除 */
    @TableField(exist = false)
    @ApiModelProperty(name = "用户订单删除状态，0：没有删除， 1：回收站， 2：永久删除",notes = "")
    private Integer deleteStatus ;
    /** 订单版本号，每处理一次订单，版本号+1 */
    @TableField(exist = false)
    @ApiModelProperty(name = "订单版本号，每处理一次订单，版本号+1",notes = "")
    private Integer version ;
    /** 用户订单地址id */
    @ApiModelProperty(name = "用户订单地址id",notes = "")
    private Integer orderAddrId ;


}
